Separate links to certain modules

I have a module which contains 1 or more links (both internal and external).  Is there a way to get the name of the module the link is going to/from?  Right now, my script automatically prints out all links regardless of where the link goes to or comes from.  However, my project now has a requirement to exclude any links to/from a comment module.  This comment module may have either "Comment" or "Comments" in its name, so I'm not sure I can check the name against a single string.  Is there a way to get just the name of the module which the link is connected to?

 

Chris


chrscote - Wed Apr 19 09:07:54 EDT 2017

Re: Separate links to certain modules
PekkaMakinen - Thu Apr 20 05:02:08 EDT 2017

Yes, look at source(LinkRef / Link l) and target(Link l) functions in DXL Reference / Link management